<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <ul class="nav nav-tabs">
            <li class="active"><a href="{:U('call/index')}">喊单列表</a></li>
            <li><a href="{:U('call/add')}">添加喊单</a></li>

        </ul>
    </ul>
    <form class="form well" method="post">
        <div class="controls">
            描述关键词：<input type="text" name="content" value="{$map['content']}"/>
        </div>
        <a class="btn" href="{:U('call/index')}">{:L('BACK')}</a>
        <button type="submit" class="btn btn-primary">搜索</button>
    </form>

    <table class="table table-hover table-bordered table-list" id="menus-table">
        <thead>
        <tr>
            <th width="60">id</th>
            <th width="140">时间</th>
            <th>老师</th>
            <th>交易品种</th>
            <th>买入/卖出</th>
            <th>委托类型</th>
            <th>点位</th>
            <th>仓位</th>
            <th>止盈</th>
            <th>止损</th>
            <th>备注</th>
            <th>平仓价格</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="data" item="vo">
            <tr>
                <td>{$vo.id}</td>
                <td>{$vo.create_time}</td>
                <td>{$vo.teacher_name}</td>
                <td>{$vo.deal_variety_name}</td>
                <td>{$vo.category_name}</td>
                <td>{$vo.price_category_name}</td>
                <td>{$vo.price}</td>
                <td>{$vo.position_name}</td>
                <td>{$vo.stop_profit_price}</td>
                <td>{$vo.stop_loss_price}</td>
                <td>{$vo.remark}</td>
                <td>{$vo.close_price}</td>
                <td>
                    <a href="{:U("call/edit",array("id" => $vo['id']))}">编辑</a> |
                    <a href="{:U("call/del",array("id" => $vo['id']))}">删除</a> |
                    <if condition="$vo.if_close eq -1 ">
                        <a href="{:U('Call/ping',array('id'=>$vo['id']))}">平仓</a>
                        <else />
                        [ 已平仓 ]
                    </if>

                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$Page}</div>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>